package com.tekj.cxqcb.view.Module.activity.StoreModule;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;

import com.tekj.cxqcb.R;
import com.tekj.cxqcb.operation.BusinessDao;
import com.tekj.cxqcb.operation.resultBean.SelectByLevelBean;

import butterknife.BindView;
import butterknife.ButterKnife;
import common.base.activity.BaseActivity;
import common.base.operationHelper.Bean.BindingViewBean;

/**
 * 各级分类下的商品
 */
public class ShopMerchandiseActivity extends BaseActivity {

    @BindView(R.id.rv_classification)
    RecyclerView rvClassification;
    @BindView(R.id.rv_overrefine)
    RecyclerView rvOverrefine;

    BusinessDao businessDao;

    @Override
    public void init() {
        businessDao = new BusinessDao(activity, activity);
        businessDao.selectByLevel(1, "");

    }

    @Override
    public int setLayout() {
        return R.layout.activity_shop_merchandise;
    }

    @Override
    public void initLoadStart() {

    }

    @Override
    public void initLoadEnd() {

    }

    @Override
    public void initBindingView(Object mBean) {
        BindingViewBean bindingViewBean = (BindingViewBean) mBean;
        switch (bindingViewBean.getmEnumStatus()) {
            case 店铺服务分类:
                SelectByLevelBean byLevelBean = (SelectByLevelBean) bindingViewBean.getBean();
                if (byLevelBean.getCode().equals("0000000")) {
//                    initIndicator(byLevelBean.getData());
                }
                break;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
